﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class Order_item
    {
        /// <summary>
        /// 明细ID（⾃增）
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Required]
        [Key]
        public int item_id { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [StringLength(32)]
        [Required]
        public int order_id { get; set; }

        /// <summary>
        /// SKU编码
        /// </summary>
        [StringLength(32)]
        [Required]
        public string? sku_id { get; set; }

        /// <summary>
        /// 购买数量
        /// </summary>
        [Required]
        public int quantity { get; set; }

        /// <summary>
        /// 成交单价
        /// </summary>
        [Required]
        public string? price { get; set; }
    }
}
